all: rational

rational: rational.o main.o
	g++ rational.o main.o -o rational

rational.o: rational.h rational.cpp
	g++ -c rational.cpp

main.o: rational.h main.cpp
	g++ -c main.cpp

clean:
	rm *.o -fi
.PHONY: all clean
